package com.imoocdl.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Created by pc on 2018/7/19.
 */
@Data
@Component
@ConfigurationProperties(prefix = "wechat")
public class WechatAccountConfig {
    /**
     * 公众平台
     */
    private String mpAppId;
    private String mapAppSecret;

    /**
     * 开放平台
     */
    private String openAppId;
    private String openAPPSecret;
    /**
     * 商户号
     */
    private String mchId;
    /**
     * 商户密钥
     */
    private String mchKey;
    /**
     * 商户证书路径
     */
    private String keyPath;
    /**
     * 微信异步通知地址
     */
    private String notifyUrl;

    /**
     * 微信模板id
     */
    private Map<String ,String> templateId;
}
